package cn.picclife.mwx.manager.sys.mapper;

import java.util.List;
import java.util.Map;

import cn.picclife.mwx.common.core.dao.MyBatisRepositoryAnnotation;
import cn.picclife.mwx.manager.sys.model.bo.CommonBo;
import cn.picclife.mwx.manager.sys.model.bo.PageCount;
import cn.picclife.mwx.manager.sys.model.bo.RolesBo;
import cn.picclife.mwx.manager.sys.model.po.Enum;
import cn.picclife.mwx.manager.sys.model.po.Roles;

@MyBatisRepositoryAnnotation
public interface RolesMapper {
	int deleteByPrimaryKey(String roleNo);

	int insert(Roles record);

	int insertSelective(Roles record);

	Roles selectByPrimaryKey(String roleNo);

	int updateByPrimaryKeySelective(Roles record);

	int updateByPrimaryKey(Roles record);

	RolesBo queryCountRoles(String roleNo);

	int insertRoles(RolesBo rolesBo);

	int updateRoles(RolesBo rolesBo);

	int queryRolesAllCount(Map<String, Object> object);

	List<Map<String, Object>> queryRolesMenu(RolesBo rolesBo);

	List<RolesBo> queryRolesList(PageCount pageCount);

	int queryRolesUserCount(Map<String, Object> map);

	List<Map<String, Object>> queryRolesUser(PageCount pageCount);

	int deleteRolesUser(RolesBo rolesUser);

	int saveRolesUser(RolesBo rolesUser);

	int saveRolesMenu(RolesBo rolesMenuBo);

	int deleteRolesMenu(String string);

	long queryRoleId(String roleNo);

	String queryOptroId(Object object);

	List<Enum> queryRoleType();

	List<Enum> queryAgentCateType();

	int deleteRolesOperator(CommonBo commonBo);

	int deleteRolesAuth(CommonBo commonBo);

	int deleteByPrimaryKeyPro(CommonBo commonBo);

}